<?php
namespace app\api\controller;

use think\Db;
use think\Session;

class Index extends BaseController
{
    /******************************** 首页相关 ***************************************/

    public function index()
    {
        $list = Db::name('adver')->where('ae_top',1)->order('ae_sort asc')->select();
        $request = \think\Request::instance();
        foreach ($list as $k=>$v){
            $list[$k]['ae_img'] = $request->domain().$v['ae_img'];
        }
        $arr = array('banner'=>$list,'img'=>$request->domain().tpConfig('Gwei'),'title'=>tpConfig('XiZhi'));
        AjaxReturn(1,'ok',$arr);
    }

}